<%@ page contentType="text/html;charset=UTF-8" language="java" trimDirectiveWhitespaces="true" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form" %>

<script type="text/javascript" src="${pageContext.request.contextPath}/js/soso/home.js"></script>

<script type="text/javascript"
        src="${pageContext.request.contextPath}/ajax/interface/UserServiceRemote.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/util.js"></script>

<div id="login-panel">
    <div id="loginDialog" align="center">
        <h1 class="formHeader">Login to Application</h1>

        <form:form method="post" action="files.html">
            <table>
                <tr>
                    <td><form:label path="login">Login</form:label></td>
                    <td><form:input path="login"/></td>
                </tr>
                <tr>
                    <td><form:label path="password">Password</form:label></td>
                    <td><form:password path="password"/></td>
                </tr>
                <tr>
                    <td colspan="2">
                        <button type="submit">Login</button>
                    </td>
                </tr>
            </table>
            <label for="registerButton"> You do not have account? </label>
            <button id="registerButton" type="button">Sign Up</button>
        </form:form>
    </div>

</div>

<%--<div id="news-div" class="panel">
    <label for="news-panel" class="panel-header">NEWS</label>

    <div id="news-panel">
        NEWS OF OUR PROJECT
    </div>
</div>--%>

<div id="regDialog" title="Registration" class="dialog">
    <table>
        <tr>
            <td colspan="2">
                <div id="signError" class="error">Data is invalid</div>
            </td>
        </tr>
        <tr>
            <td>Login</td>
            <td><input id="regLogin" type="text"/></td>
        </tr>
        <tr>
            <td>Password</td>
            <td><input id="regPassword" type="password"/></td>
        </tr>
        <tr>
            <td>Name</td>
            <td><input id="name" type="text"/></td>
        </tr>
        <tr>
            <td>E-mail</td>
            <td><input id="email" type="text"/></td>
        </tr>
    </table>
</div>



